package net.atomarrow.db.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import net.atomarrow.db.enums.Type;
/**
 * 数据库构建指明字段的类型@FieldType(type=Type.STRING,length=40)
 * @author Michael
 *
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface FieldType {
	Type type();
	int length() default 40; 
	int precision() default 2;
	boolean utf8mb4() default false;
}
